import 'package:app_admin/models/order_set_info.dart';

///外销生产计划
class OrderPlanInfo {
  String? id;
  String? orderId;
  int? carNum;
  String? car;
  String? startName;
  String? endName;

  OrderSetInfo? orderData;

  OrderPlanInfo(
      {this.id,
      this.orderId,
      this.carNum,
      this.car,
      this.startName,
      this.endName});

  String GetBtnStr() {
    return num!.toString();
  }

  OrderPlanInfo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    orderId = json['orderId'];

    carNum = json['carNum'];
    car = json['car'];
    startName = json['startName'];
    endName = json['endName'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['id'] = id;
    data['orderId'] = orderId;
    data['carNum'] = carNum;
    data['car'] = car;
    data['startName'] = startName;
    data['endName'] = endName;
    return data;
  }
}
